package com.baizhi.entity;


import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class User {
    private long userId;
    private String username;
    private String email;
    private String password;
    private String mobile;
    private String role;
    private long status;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;


    public User() {
    }

    public User(long userId, String username, String email, String password, String mobile, String role, long status) {
        this.userId = userId;
        this.username = username;
        this.email = email;
        this.password = password;
        this.mobile = mobile;
        this.role = role;
        this.status = status;
    }

    public User(long userId, String username, String email, String password, String mobile, String role, long status, Date createTime, Date updateTime) {
      this.userId = userId;
      this.username = username;
      this.email = email;
      this.password = password;
      this.mobile = mobile;
      this.role = role;
      this.status = status;
      this.createTime = createTime;
      this.updateTime = updateTime;
    }

    public long getUserId() {
      return userId;
    }

    public void setUserId(long userId) {
      this.userId = userId;
    }


    public String getUsername() {
      return username;
    }

    public void setUsername(String username) {
      this.username = username;
    }


    public String getEmail() {
      return email;
    }

    public void setEmail(String email) {
      this.email = email;
    }


    public String getPassword() {
      return password;
    }

    public void setPassword(String password) {
      this.password = password;
    }


    public String getMobile() {
      return mobile;
    }

    public void setMobile(String mobile) {
      this.mobile = mobile;
    }


    public String getRole() {
      return role;
    }

    public void setRole(String role) {
      this.role = role;
    }


    public long getStatus() {
      return status;
    }

    public void setStatus(long status) {
      this.status = status;
    }


    public Date getCreateTime() {
      return createTime;
    }

    public void setCreateTime(Date createTime) {
      this.createTime = createTime;
    }


    public Date getUpdateTime() {
      return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
      this.updateTime = updateTime;
    }

    @Override
    public String toString() {
      return "User{" +
              "userId=" + userId +
              ", username='" + username + '\'' +
              ", email='" + email + '\'' +
              ", password='" + password + '\'' +
              ", mobile='" + mobile + '\'' +
              ", role='" + role + '\'' +
              ", status=" + status +
              ", createTime=" + createTime +
              ", updateTime=" + updateTime +
              '}';
    }
}
